﻿using Microsoft.AspNetCore.Mvc;
using NanjingbeiRailwayStation.Core;
using NanjingbeiRailwayStation.Data.ClickHouse.Entities;
using NanjingbeiRailwayStation.Data.ClickHouse.Services;
using NanjingbeiRailwayStation.WebApi.Models;

namespace NanjingbeiRailwayStation.WebApi.Controllers
{
    /// <summary>
    /// mock 测试使用
    /// </summary>
    [ApiController]
    [Route("[controller]")]
    public class DeviceInformationController : ControllerBase
    {

       
       /// <summary>
       /// 
       /// </summary>
       /// <param name="upperComputerSn"></param>
       /// <returns></returns>
        [HttpGet("GetDeviceListByUpperComputerSn")]
        public  async Task<ResultRespose<List<DeviceInformation>>> GetDeviceListByUpperComputerSn(string upperComputerSn)
        {
           List<DeviceInformation> entities = new List<DeviceInformation>();
            entities.Add(new DeviceInformation { });
            entities.Add(new DeviceInformation { });

           await Task.Delay(1);

           return ResultRespose<List<DeviceInformation>>.OKWithData(entities);
        }

    }
}